from pathlib import Path

DB_TYPE = "sqlite"
#DB_PATH = "./db/hotel_booking.db"  # SQLite 文件路径
DB_HOST = "localhost"  # MySQL Host
DB_USER = "your_user"  # MySQL User
DB_PASSWORD = "your_pass" # MySQL Password
DB_NAME = "hotel_booking"  # MySQL Database Name

# Oracle数据库配置（聚源数据库）
ORACLE_LIB_DIR = r"D:\zzc\software\instantclient_21_13\instantclient_21_13"
ORACLE_USER = "jydb"
ORACLE_PASSWORD = "jydb"
ORACLE_HOST = "10.33.40.48"
ORACLE_PORT = "1521"
ORACLE_SERVICE_NAME = "orcl"

def find_root_dir():
    current = Path(__file__).parent
    while current != current.parent:  # 直到根目录
        if (current / 'db').exists():
            return current
        current = current.parent
    return Path(__file__).parent  # 回退方案

root_dir = find_root_dir()
DB_PATH = root_dir / 'db' / 'hotel_booking.db'

ALI_GENERATION_MODEL="deepseek-v3" #"qwen3-max : 258048 " #"qwen-plus" #"qwen3-235b"   deepseek-v3: 131072
ALI_THINK_MODEL="deepseek-r1"
ALI_DASHSCOPE_API_KEY= 'sk-3aafbe7655c444f6a4a5f46cf3d03c6d' #sk-77236aa8dcd44a8b8e699628c1058c5e
ALI_TEMPERATURE=0
AGENT_URL='https://dashscope.aliyuncs.com/compatible-mode/v1'
REMOTE_URL="https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions"